import request from '@/config/axios'

/**场景列表*/
export const querySceneList = async (params) => {
  return await request.get({ url: `/system/query-scene/list`, params })
}
/**获取各个页面的查询条件*/
export const querySceneGetConditions = async (params) => {
  return await request.get({ url: `/system/query-scene/get-conditions`, params })
}
/**创建场景*/
export const querySceneCreate = async (data) => {
  return await request.post({ url: `/system/query-scene/create`, data })
}
/**编辑场景*/
export const querySceneUpdate = async (data) => {
  return await request.put({ url: `/system/query-scene/update`, data })
}
/**删除场景*/
export const querySceneDelete = async (id) => {
  return await request.delete({ url: `/system/query-scene/delete?id=${id}` })
}
/**线索高级查询*/
export const clueAdvancePage = async (data) => {
  // return await request.post({ url: `/crm/clue/advance-page`, data })//old
  return await request.post({ url: `/crm/clue/custom-advance-page`, data })
}
/**客户高级查询*/
export const customerAdvancePage = async (data) => {
  return await request.post({ url: `/crm/customer/advance-page`, data })
}
/**呼叫记录高级查询*/
export const callAdvancePage = async (data) => {
  return await request.post({ url: `/call/record/advance-page`, data })
}
